home *** CD-ROM | disk | FTP | other *** search
/ PC Media 4 / PC MEDIA CD04.iso / share / udos / qsr / qsr.doc next >
Encoding:
Text File  |  1992-08-05  |  3.4 KB  |  93 lines

  1.             QSR Quick Search Replace
  2.      Copyright 1992 By Mark J. Chickering All Rights Reserved
  3.         Command Line Multiple Text Search And Replace
  4.  
  5. Application: QSR Is Great For Replacing Multiple Strings In A File In One
  6. ------------ Pass, From The Dos Command Line.
  7.  
  8. Limitations: Reads Files Upto 20k (20480 bytes)
  9. ------------ Writes Files Upto 30K (30720 bytes)
  10.          Command Line Can Contain upto The Dos Limit (128 Characters) OR
  11.          16 Search/Replace Strings, Whichever Comes First
  12. Command Line:
  13. -------------
  14. items inside [] are manditory
  15. items inside {} are optional
  16. ... means more can follow
  17.  
  18. QSR [IN.FIL] [OUT.FIL] [SEARCH1=REPLACE1] {SEARCH2=REPLACE2} ...
  19.  
  20. IN.FIL-Name OF File To Read Data From (FILE MUST EXIST)
  21. OUT.FILE-Name Of File To Write Changed Data To (FILE CANNOT EXIST)
  22. SEARCH1=REPLACE1 Search and Replace Parameters.
  23.     All Searches Are Caps/Small Letter Sensative.
  24.     Supports Extended Ascii Characters.
  25.  
  26. Example: Search Text File "IN.FIL" for the String 'DOG' And Replace With The
  27. String 'Cat' Write The Result To The File "OUT.FIL"
  28.  
  29.     QSR IN.FIL OUT.FIL DOG=Cat
  30.  
  31. Example: Search Text File "IN.FIL" for the Strings:
  32.     'DOG' And Replace With The String 'Cat'
  33.     'Pig' And Replace With The String 'COW'
  34.     'ONE' And Replace With The String 'TWO'
  35.     Write The Result To The File "OUT.FIL"
  36.  
  37.     QSR IN.FIL OUT.FIL DOG=Cat Pig=COW ONE=TWO
  38.  
  39. To Search And Replace Strings That Contain A Space Character Use Double
  40. Quotes As Follows:
  41.  
  42. Example: Search Text File "IN.FIL" for the Strings:
  43.     'DOG' And Replace With The String 'Cat'
  44.     'The Pig' And Replace With The String 'A Cow'
  45.     Write The Result To The File "OUT.FIL"
  46.  
  47.     QSR IN.FIL OUT.FIL DOG=Cat "The Pig=A Cow"
  48.  
  49. Release Info:
  50. -------------
  51. Current Version 1.0 08-03-92.
  52. Future Versions May Follow.
  53.  
  54.  
  55. LICENSE/WARRANTY:
  56. -----------------
  57. If You Use This Program Send The Amount Of $5.00 (Five US Dollars) To:
  58.  
  59.     Mark Chickering
  60.     241 Montgomery Road.
  61.     Staunton, VA 24401
  62.  
  63. Any Hacking, Decompiling or Pirating Of This Program Is An Immediate Willfull
  64. Termination Of Licensure And Is Punishable By Law.
  65.  
  66. ALL CODE AND DOCUMENTATION FILES ARE COPYRIGHTED 1992 BY MARK CHICKERING
  67. ALL RIGHTS RESERVED.
  68.  
  69. I make no warranty of any kind, express or implied, including without
  70. limitation, any warranties of merchantability and/or fitness for a particular
  71. purpose.  I shall not be held liable for any  damages, whether direct, indirect,
  72. special or consequential arising from a failure  of this program to operate in
  73. the manner desired by the user.  I shall not be held liable for any damage to
  74. data or property which may be caused directly or indirectly by the use of
  75. this program. In no event will I be held liable for any damages, including
  76. (but not limited to) any lost profits, lost savings or other incidental or
  77. consequential damages arising out of the use or inability to use this program,
  78. or for any claim by any other party.
  79.  
  80. DISTRIBUTION:
  81. -------------
  82. This program can be freely distributed as SHAREWARE! in its ORIGINAL .ZIP
  83. file only.  ANY alterations to the ZIP file or to the program itself is a
  84. willful TERMINATION OF LICENSURE.
  85.  
  86. Error Codes Returned:
  87. ---------------------
  88. 1000 To Few Command Line Parameters
  89. 1001 Cannot Open File Specified In Parameter [IN.FILE] to Read Data
  90. 1002 Cannot CREATE File Specified In Parameter [OUT.FIL]
  91. 1003 Could Not Find = Sign In Search=Replace Parameter Data Entered Incorectly
  92. 0 Normal Termination.
  93.